<template>
  <view class="page">
    <view class="main">
      <Card>
        <template v-for="item in 5" :key="item">
          <view class="flex gap-sm" @click="handleClick(item)">
            <u-avatar size="60rpx"></u-avatar>
            <u-text text="张三" size="28rpx" color="#333"></u-text>
          </view>
          <u-divider></u-divider>
        </template>
      </Card>
    </view>
  </view>
</template>

<script setup>
import Card from '@/components/Card/index.vue';
const handleClick = (item) => {
  uni.navigateTo({
    url: '/pages/teacher/mine/workData?id=' + item.id
  });
};
</script>